
 package com.ami.vmedia.gui;
 
 import com.ami.kvm.jviewer.JViewer;
 import com.ami.kvm.jviewer.gui.JViewerApp;
 import com.ami.kvm.jviewer.gui.LocaleStrings;
 import com.ami.vmedia.VMApp;
 import java.awt.event.WindowAdapter;
 import java.awt.event.WindowEvent;
 import java.util.Timer;
 import javax.swing.JDialog;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 public class VMDialog
   extends JDialog
 {
   private static final int VMDIALOG_WIDTH = 700;
   private static final int VMDIALOG_HEIGHT = 500;
   private VMPane vmPane;
   private VMStatusBar statusPanel;
   
   public VMDialog()
   {
     super(JViewer.getMainFrame(), LocaleStrings.getString("G_1_VMD"));
     setSize(700, 500);
     VMApp.setWidth(700);
     VMApp.setHeight(500);
     setLocation(JViewerApp.getInstance().getPopUpWindowPosition(700, 500));
     setModal(false);
     this.vmPane = new VMPane();
     VMApp.setVMPane(this.vmPane);
     this.statusPanel = VMApp.getVMStatusPanel();
     add(this.vmPane, "Center");
     add(this.statusPanel, "South");
     setResizable(false);
     showDialog(true);
     addWindowListener(new WindowAdapter() {
       public void windowClosing(WindowEvent paramAnonymousWindowEvent) {
         VMDialog.this.showDialog(false);
       }
     });
   }
   
 
 
   public void disposeVMDialog()
   {
     VMApp.getUpdateBytesTimer().cancel();
     VMApp.stopDeviceDetector();
     VMApp.stopRedirectionStatusMonitor();
     setVisible(false);
     dispose();
     VMApp.setVMDialog(null);
     JViewerApp.getInstance().setVMDialog(null);
   }
   
 
 
 
 
   public void showDialog(boolean paramBoolean)
   {
     if (paramBoolean) {
       this.vmPane.setSelectedTab(JViewerApp.getInstance().getSelectedVMTab());
     }
     setVisible(paramBoolean);
   }
   
 
   public void reInitialize()
   {
     this.vmPane.initializeVMPane();
     this.vmPane.revalidate();
     this.vmPane.repaint();
     repaint();
   }
 }


/* Location:              D:\Users\tianlin\Downloads\JViewer.jar!\com\ami\vmedia\gui\VMDialog.class
 * Java compiler version: 5 (49.0)
 * JD-Core Version:       0.7.1
 */